1) If you want to find the square of 45, you can employ the Ekadhikena Purvena sutra ("By one more than the one before"). The rule says since the first digit is 4 and the second one is 5, you will first have to multiply 4 (4 +1), that is 4 X 5, which is equal to 20 and then multiply 5 with 5, which is 25. Viola! The answer is 2025. Now, you can employ this method to multiply all numbers ending with 5.
2) If you want to subtract 4679 from 10000, you can easily apply the Nikhilam Navatashcaramam Dashatah sutra ("All from 9 and the last from 10"). Each figure in 4679 is subtracted from 9 and the last figure is subtracted from 10, yielding 5321. Similarly, other sutras lay down such simple rules of calculation.
2) If you want to subtract 4679 from 10000, you can easily apply the Nikhilam Navatashcaramam Dashatah sutra ("All from 9 and the last from 10"). Each figure in 4679 is subtracted from 9 and the last figure is subtracted from 10, yielding 5321. Similarly, other sutras lay down such simple rules of calculation.